Skip to main content

ObjectDetectorHitNothing

Members

The data provided by the object detector when it doesn't hit anything.


Distance

Will be greater than or equal to the ObjectDetector's MaxDistance configuration, note, there is a slight error in this value so it may be ~1e-3 less than it should be. It is of the type number.


isTerrain

Whether or not the hit object is terrain. It is of the type true.

Luau Type

This is the luau type for ObjectDetectorHitNothing. It may help clear up mistranslations from the raw data to the wiki page (as it is an automatic process).

export type ObjectDetectorHitNothing = {
Distance: number,
isTerrain: true,
}